package com.dreamwhale.machinery.logistics.service;

import com.dreamwhale.machinery.logistics.entity.TransportCompanyInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 物流信息 服务类
 * </p>
 *
 * @author Author
 * @since 2020-05-28
 */
public interface TransportCompanyInfoService extends IService<TransportCompanyInfo> {

    /**
     * 发布物流信息
     *
     * @param transportCompanyInfo
     * @return
     */
    int insertTransportCompanyInfos(TransportCompanyInfo transportCompanyInfo);

    /**
     * 查询我的物流信息
     *
     * @param userId
     * @return
     */
    List<TransportCompanyInfo> selectTransportCompanyInfoMap(Integer userId);

    /**
     * 查询我的物流信息
     *
     * @param
     * @return
     */
    List<TransportCompanyInfo> selectTransportCompanyInfos(Integer infoid);

    /**
     * 查询物流信息详情
     *
     * @param infoId
     * @return
     */
    TransportCompanyInfo selectTransportCompanyInfoByTypeId(@Param("infoId") Integer infoId);

    /**
     * 首页-物流信息
     *
     * @param title
     * @param brandId
     * @param province
     * @param city
     * @param type
     * @param types
     * @return
     */
    List<TransportCompanyInfo> selectTransportCompanyInfoHome(String title, Integer brandId, String province, String city,
                                                              Integer type, Integer types, Integer carTypeId);
}
